<!doctype html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<span>{$Think.lang.name}</span>
<span>{$Think.lang.test}</span>
<br><br><br>
<button type="button" lang='cn' class='btn'>中文</button>
<button type="button" lang='en' class='btn'>英文</button>
<button type="button" lang='其它语言' class='btn'>其他语言</button>
</body>
</html>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.js"></script>
<script>
    $('.btn').click(function(){
        var data={'lang':$(this).attr('lang')}
        $.get("{:url('Rebate/lang')}",data,function(){
            location.reload();
        })
    })
</script>
